import 'package:flutter/cupertino.dart';

import 'image_widget.dart';

class UserAvatarWidget extends StatelessWidget{
  final String avatar;
  final double size;

  const UserAvatarWidget({Key? key,this.avatar="",required this.size}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return CircularImageWidget(url: avatar.isEmpty?"assets/images/image_default_avatar.png":avatar,width: size,height: size);
  }

}